package behavior.iterator;

/**
 * @author dali
 * @date 2021-07-26 14:58
 * @Description
 */

public class Client {
    public static void main(String[] args) {
        MyIterable<Student> list = new ConcreteIterable();
        MyIterator iterator = list.iterator();
        while (iterator.hasNext()) {
            System.out.println(iterator.next());
        }
    }
}
